const path = require('path')
module.exports = {
    mode:'development',
    entry:'./src/index.js',
    output:{
        path:path.resolve(__dirname,'dist'),
        filename:'zp-myLib-utils.js',
        library:'zpUtils',//向外暴露的对象名称
        libraryTarget:'umd'//打包生成库可以通过esm/conmonjs/require.js的语法引入
    },
    module: {
        rules: [{
            test: /\.js$/,
            loader: "babel-loader"
        }]
    }
}